<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../css/font-awesome.min.css">
<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
<link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" href="../../css/main.css">
<script src="../../libs/jquery.min.js"></script>
<script src="../../plugins/layer/layer.js"></script>
<script src="../../libs/bootstrap.min.js"></script>
<script src="../../libs/vue.min.js"></script>
<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
<script src="../../js/common.js"></script>
    <!-- 注意， 只需要引用 JS，无需引用任何 CSS ！！！-->
    <script type="text/javascript" src="../../js/wangEditor.min.js"></script>
</head>

<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="searchParam" @keyup.enter="query" placeholder="项目名称">
			</div>
			<div class="form-group col-sm-2">
				<select class="form-control" v-model="searchType" placeholder="项目类型">
					<option value="">类型</option>
					<option value="0">系统反馈</option>
					<option value="1">项目反馈</option>
				</select>
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			<a v-if="hasPermission('feedback:feedbackinfos:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			<a v-if="hasPermission('feedback:feedbackinfos:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			<a v-if="hasPermission('feedback:feedbackinfos:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group" v-show="feedbackinfos.feedbackinfoid != null ? true : false">
				<div class="col-sm-2 control-label">反馈ID</div>
				<div class="col-sm-10">
					<input type="text" disabled="disabled" class="form-control" v-model="feedbackinfos.feedbackinfoid" placeholder="用户id"/>
				</div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">反馈者</div>
			   	<div class="col-sm-10">
			      <input type="text" style="cursor:pointer" readonly="readonly" @click="selectUser" class="form-control" v-model="userinfo.useraccount" placeholder="用户id"/>
			    </div>
			</div>
            <div class="form-group">
                <div class="col-sm-2 control-label">反馈内容</div>
                <div class="col-sm-10">
					<textarea rows="5" cols="20" v-model="feedbackinfos.contexts" style="width: 150%;height: 150px" placeholder="反馈内容">

                    </textarea>
                    <!--<div id="editor" style="width: 200%;">-->

                    <!--</div>-->
                </div>
            </div>
			<div class="form-group" v-show="feedbackinfos.createtime != null ? true : false">
				<div class="col-sm-2 control-label">创建时间</div>
				<div class="col-sm-10">
					<input type="text" disabled="disabled" class="form-control" v-model="feedbackinfos.createtime" placeholder="用户id"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label">反馈类型</div>
				<div class="col-sm-10">
					<select class="form-control" v-model="feedbackinfos.feedbacktype">
						<option value="0">系统反馈</option>
						<option value="1">项目反馈</option>
					</select>
				</div>
			</div>
			<div class="form-group" v-show="feedbackinfos.feedbacktype == 0 ? false : true">
				<div class="col-sm-2 control-label">项目名</div>
				<div class="col-sm-10">
					<input type="text" style="cursor:pointer" readonly="readonly" @click="selectProject" class="form-control" v-model="projectinfo.projectname" placeholder="项目名"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">反馈回复读取状态</div>
				<div class="col-sm-10">
					<select class="form-control" v-model="feedbackinfos.isread">
						<option value="0">未读</option>
						<option value="1">已读</option>
					</select>
				</div>
			</div>

			<div class="form-group" v-show="feedbackinfos.dealername != null ? true : false">
				<div class="col-sm-2 control-label">处理人</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" disabled="disabled" v-model="feedbackinfos.dealername" placeholder="处理人"/>
				</div>
			</div>
			<div class="form-group" v-show="feedbackinfos.auditdate != null ? true : false">
				<div class="col-sm-2 control-label">审核时间</div>
				<div class="col-sm-10">
					<input type="text" disabled="disabled" class="form-control" v-model="feedbackinfos.auditdate" placeholder="用户id"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">审核状态</div>
				<div class="col-sm-10">
					<select class="form-control" v-model="feedbackinfos.auditstatus">
						<option value="0">待审核</option>
						<option value="1">已解决</option>
						<option value="2">未解决</option>
					</select>
				</div>
			</div>
			<div class="form-group" v-show="feedbackinfos.auditstatus == 0 ? false : true">
				<div class="col-sm-2 control-label">反馈回复内容</div>
				<div class="col-sm-10">
					<!--<input type="text" class="form-control" v-model="feedbackinfos.dealcontexts" placeholder="反馈回复内容"/>-->
                    <textarea rows="5" cols="20" v-model="feedbackinfos.dealcontexts" style="width: 150%;height: 100px" placeholder="反馈回复内容">

                    </textarea>
				</div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
	<div v-show="false" id="selectUserID">
		<div class="form-group col-sm-2">
			<input type="text" class="form-control" v-model="selectUserSearchParam" @keyup.enter="selectUserQuery" placeholder="用户账户,用户ID">
		</div>
		<a class="btn btn-default" @click="selectUserQuery">查询</a>
		<table id="selectLayer"></table>
		<div id="selectLayerPager"></div>
	</div>
	<div v-show="false" id="selectProjectID">
		<div class="form-group col-sm-2">
			<input type="text" class="form-control" v-model="selectProjectSearchParam" @keyup.enter="selectProjectQuery" placeholder="用户账户,用户ID">
		</div>
		<a class="btn btn-default" @click="selectProjectQuery">查询</a>
		<table id="selectProjectLayer"></table>
		<div id="selectProjectLayerPager"></div>
	</div>
</div>

<script src="../../js/modules/feedback/feedbackinfos.js"></script>
</body>
</html>